# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ristretto
pkgver=0.12.2
pkgrel=1
pkgdesc="Image viewer for Xfce"
url="https://docs.xfce.org/apps/ristretto/start"
arch="all"
license="GPL-2.0-or-later"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="libxfce4ui-dev dbus-glib-dev file-dev libexif-dev thunar-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/apps/ristretto/${pkgver%.*}/ristretto-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-debug
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
39fc5868c3858e3667660b6411b3d39c19a2306be3d169e499aa11aff34a24e0ee8e745e15dfe301be48e1c6adce30129ed76270b025f5160cfa773467764379  ristretto-0.12.2.tar.bz2
"
